#include "rsa_algorithm.h"
#include "SHA256.h"
#include "base64.h"
#include "lz4_algorithm.h"


int main()
{
    
    // rsa_algorithm rsa;
    // std::string plaintext = "0123456789";

    // std::cout << "plaintext: " << plaintext << std::endl;
    // std::string ret = rsa.encrypt_by_private_key(plaintext);
    // std::cout << base64_encode(ret.c_str(), ret.size()) << std::endl;
    
    // std::string com = lz4_compress(ret);
    // com = lz4_decompress(com);
    // std::cout << base64_encode(com.c_str(), com.size()) << std::endl;
    
    // ret = rsa.decrypt_by_public_key(ret);
    // std::cout << "decrypt_text: " << ret << std::endl;


    // std::cout << "plaintext: " << plaintext << std::endl;
    // ret = rsa.encrypt_by_public_key(plaintext);
    // std::cout << "cyphertext: " << rsa.base64_encode(ret.c_str(), ret.size()) << std::endl;
    // ret = rsa.decrypt_by_private_key(ret);
    // std::cout << "decrypt_text: " << ret << std::endl;
    // std::cout << SHA256("123456sadddddddddddddasdat") << std::endl;

}